package com.starssea.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

//@Component
@Data
// 创建普通bean
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "app")
public class AppBean {

    // 名字相同，非静态
    private String name;
    private String site;
    private Integer port;
    // 嵌套bean
    private Security security;
}
